import { loginUser } from "./configs";

/**
 * 判断是否拥有权限
 * @param powerId 权限ID
 * @returns
 */
export const checkPower = (powerId: string | number) => {
  return loginUser.power.includes(powerId + '');
}

/**
 * 判断账号是否被禁用
 * @returns false：启用   true： 禁用
 */
export const checkAccount = () => {
  return loginUser.disabled;
}
